package com.victor.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.victor.entity.SearchHistory;

public interface SearchhistoryService {
	/**
	 * 添加搜索
	 * @param searchHistory
	 * @return
	 */
	boolean insertSearch(SearchHistory searchHistory);
	/**
	 * 
	 * 查询用户搜索历史记录
	 * @param uid
	 * @return
	 */
	List<SearchHistory> selByUid(String uid);
	/**
	 * 根据city/null查询
	 * @param map
	 * @return
	 */
	List<SearchHistory> selByCity(Map<Object, Object> map);

}
